import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_evaluate_entity.dart';

StandardHomeEvaluateEntity $StandardHomeEvaluateEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeEvaluateEntity standardHomeEvaluateEntity = StandardHomeEvaluateEntity();
  final String? evaluationLevel = jsonConvert.convert<String>(json['evaluationLevel']);
  if (evaluationLevel != null) {
    standardHomeEvaluateEntity.evaluationLevel = evaluationLevel;
  }
  final String? filePath = jsonConvert.convert<String>(json['filePath']);
  if (filePath != null) {
    standardHomeEvaluateEntity.filePath = filePath;
  }
  final String? filePathSelf = jsonConvert.convert<String>(json['filePathSelf']);
  if (filePathSelf != null) {
    standardHomeEvaluateEntity.filePathSelf = filePathSelf;
  }
  final String? overDate = jsonConvert.convert<String>(json['overDate']);
  if (overDate != null) {
    standardHomeEvaluateEntity.overDate = overDate;
  }
  final String? overDateSelf = jsonConvert.convert<String>(json['overDateSelf']);
  if (overDateSelf != null) {
    standardHomeEvaluateEntity.overDateSelf = overDateSelf;
  }
  final String? selfEvaluationLevel = jsonConvert.convert<String>(json['selfEvaluationLevel']);
  if (selfEvaluationLevel != null) {
    standardHomeEvaluateEntity.selfEvaluationLevel = selfEvaluationLevel;
  }
  return standardHomeEvaluateEntity;
}

Map<String, dynamic> $StandardHomeEvaluateEntityToJson(StandardHomeEvaluateEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['evaluationLevel'] = entity.evaluationLevel;
  data['filePath'] = entity.filePath;
  data['filePathSelf'] = entity.filePathSelf;
  data['overDate'] = entity.overDate;
  data['overDateSelf'] = entity.overDateSelf;
  data['selfEvaluationLevel'] = entity.selfEvaluationLevel;
  return data;
}

extension StandardHomeEvaluateEntityExtension on StandardHomeEvaluateEntity {
  StandardHomeEvaluateEntity copyWith({
    String? evaluationLevel,
    String? filePath,
    String? filePathSelf,
    String? overDate,
    String? overDateSelf,
    String? selfEvaluationLevel,
  }) {
    return StandardHomeEvaluateEntity()
      ..evaluationLevel = evaluationLevel ?? this.evaluationLevel
      ..filePath = filePath ?? this.filePath
      ..filePathSelf = filePathSelf ?? this.filePathSelf
      ..overDate = overDate ?? this.overDate
      ..overDateSelf = overDateSelf ?? this.overDateSelf
      ..selfEvaluationLevel = selfEvaluationLevel ?? this.selfEvaluationLevel;
  }
}
